#include <network.h>
#include <control.h>
#include <game.h>
#include <file.h>

int main()
{
	int i;
	FILE *map;
	field **fld;
	fld = (field**)malloc(sizeof(field*)*30);
	for(i=0;i<30;i++)
	{
		fld[i] = (field*)malloc(sizeof(field)*30);
	}
	
	map = fopen("C:\\Users\\Sócrates\\Desktop\\slay-online\\mapa.txt", "r");
	
	initGame(map, fld);
	
	for(i=0;i<30;i++)
	{
		free(fld[i]);
	}
	free(fld);
}